<template>
  <div class="index-container">
    <GenerateForm v-if="show" :data="widgetForm"></GenerateForm>
  </div>
</template>

<script>
  import { Getbytype } from '@/api/homepage/api'
  import GenerateForm from '@/mycomponents/customerReport/GenerateForm'
  export default {
    name: 'UserIndex',
    data() {
      return {
        widgetForm: {},
        show: false,
      }
    },
    components: {
      GenerateForm,
    },
    created() {
      Getbytype({ pageType: 0 }).then((res) => {
        if (res.isSuccess) {
          this.widgetForm = JSON.parse(res.content.json)
          this.show = true
        }
      })
    },
    methods: {},
  }
</script>
